﻿@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>客户管理</title>
    @Html.Partial("wap/team/commonMeta")
    <link rel="stylesheet" href="~/css/wap/team/product.css?v=@MvcWechat.Common.Version.Get" />
    <link href="~/Css/wap/team/stock.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet" />
    <link href="~/css/wap/libs/multiple-select.css" rel="stylesheet">
    <link href="~/Css/wap/team/teamorder.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
    <link href="~/Css/wap/team/stock_app.css?v=@MvcWechat.Common.Version.Get" rel="stylesheet"/>
    <style type="text/css">
        #control_id,#control_id_role{
            position: relative;
            height: 29px;
            width: 209px;
            border: 1px solid #cccccc;
            border-radius: 3px;
            line-height: 29px;
            padding-left: 10px;
            left:80px;
            top:-23px
        }
        .control_ul{
            width: 205px;
            position: absolute;
            left: 0;
            top:29px;
            background: #ffffff;
            border: 1px solid #eeeeee;
            border-radius: 3px;
            padding: 10px 0;
            max-height:125px;
            overflow-y: auto;
            z-index: 999;
        }
        .control_ul .control_li{
            padding-left: 10px;
            width: 100%;
            height:20px;
        }
    </style>
</head>
<body>
<div class="views">
    <div class="view view-main">
        <div class="navbar">
            <div class="navbar-inner">
                <header id="common_header">
                    <div class="menu_icon_box" id="show_menu_btn">
                        <em class="menu-btn"></em>
                    </div>
                    <div class="menu_icon_box" id="hide_menu_btn">
                        <em class="colse-nav-btn"></em>
                    </div>
                    <h2>客户管理</h2>
                </header>
                @Html.Partial("wap/team/teammenu")
                <div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
                    <div class="list_status clearfix" id="_sysStatus">
                        <ul>
                            <li data-value="">全部</li>
                            <li data-value="1" class="add_blue">正常</li>
                            <li data-value="2">待审(<b id="wait_customer">0</b>)</li>
                            <li data-value="0">禁用</li>
                            <li data-value="-1">已删</li>
                        </ul>
                        <span id="show_term_btn" class="add_blue">筛选</span>
                    </div>

                    <div class="check_btn_box li_btn_box clearfix">
                        <ul class="check_list" >
                            <li style="display:block" class="customer_move"><button class="search_btn_b" id="transfer" disabled="disabled">移交</button></li> <!--onclick='ModifySalesUserID_Js();' -->
                            <li style="display:none" class="customer_supplier"><button class="search_btn_b" id="role_btn" disabled="disabled">供应商角色</button></li>
                            <li style="display:none" class="customer_discounts"><button class="search_btn_b" id="discounts_btn" disabled="disabled">优惠</button></li>
                            <li style="display:block" class="customer_add"><span class="add add_blue add_min" id="add_btn">添加客户</span></li>
                        </ul>
                    </div>
                    <table class="product_table" id="product_table_fixed">
                        <thead>
                        <tr>
                            <th style='width:8%' class="check_rel" id="th_check_all">
                                <div class='check_list_box'>
                                    <span class='checkbox' name='checkbox_all'></span>
                                </div>
                            </th>
                            <th class='nickname' style='width:12%'>简称</th>
                            <th style='width:12%'>全称</th>
                            <th style='width:10%'>状态</th>
                            <th title="登录次数" style='width:10%'>次数<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                            <th title="上传登录时间" style='width:12%'>近期</th>
                            <th style='width:10%'>业务</th>
                            <th style='width:10%'>采购</th>
                            <th title="到期日期" style='width:10%'>到期</th>
                        </tr>
                        </thead>
                        <tbody id="stock_body_hide">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class="pages navbar-through toolbar-through">
            <div data-page="index" class="page">
                <!--内容区start-->
                <div class="page-content" id="app_no_header">
                    <!-- 库存列表start -->
                    <div id="inventory" style="background-color: #fff;">
                        <table class="product_table table_hide" id="product_table" style="margin-top:4px">
                            <thead>
                            <tr>
                                <th style='width:8%'></th>
                                <th class='nickname' style='width:12%'>简称</th>
                                <th style='width:12%'>全称</th>
                                <th style='width:10%'>状态<i class="sort sort_normal" data-sort="SysStatus"></i></th>
                                <th title="登录次数" style='width:10%'>次数<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                                <th title="上传登录时间" style='width:12%'>近期<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
                                <th style='width:10%'>业务</th>
                                <th style='width:10%'采购</th>
                                <th title="到期日期" style='width:10%'>到期<i class="sort sort_normal" data-sort="ValidDate"></i></th>
                            </tr>
                            </thead>
                            <tbody id="stock_body">

                            </tbody>
                        </table>
                    </div>
                    <p class="totalcount">显示前500条</p>
                </div>
                <!--内容区end-->
            </div>
        </div>

        <!-- 移交客户start --->
        <div class="popup popup_ModifySalesUserID_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>移交客户</h5>
                <form class="form-inline _transfer" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
                    <label class="checkbox-inline">请选择业务：</label>
                    <select id="_salesUserIDs" class="form-control list_search" name="SalesUserID"></select>
                    <div class="form-btn">
                        <input type="submit" class="btn btn-danger supbtn cancel_btn close-popup" value="取消" />
                        <input type="submit" class="btn btn-danger supbtn" value="确定" />
                    </div>
                </form>
            </div>
        </div>
        <!-- 移交客户end --->

        <!-- 审核客户start --->
        <div class="popup popup_Active_box">
            <div class="pop">
                <span class="colse_popbox close-popup">X</span>
                <h5>审核客户</h5>
                <form class="form-inline" id="activecustomer_form"  method="post">
                    <div class="form-group" style="display: none">
                        <label for="CustomerID" class="purchase-text"></label>
                        <input type="text" class="form-control" id="active_customerID" placeholder="客户号" name="CustomerID">
                    </div>
                    <div class="form-group">
                        <label for="UserName" class="purchase-text"><b class="star_tip">*</b>帐号：</label>
                        <input type="text" class="form-control" id="active_userName" placeholder="帐号" name="UserName">
                    </div>
                    <div class="form-group">
                        <label><b class="no_null">*</b>密码：</label>
                        <input type="password" class="form-control" id="active_userPassword" placeholder="密码" name="UserPassword" />
                    </div>
                    <div class="form-group">
                        <label for="NickName" class="purchase-text"><b class="star_tip">*</b>公司简称：</label>
                        <input type="text" class="form-control" id="active_nickName" placeholder="公司简称" name="NickName">
                    </div>
                    <div class="form-group">
                        <label for="NickName" class="purchase-text">公司全称：</label>
                        <input type="text" class="form-control" placeholder="公司全称" name="CompanyName">
                    </div>
                    <div class="form-group">
                        <label for="Introducer" class="purchase-text">介绍人：</label>

                        <input type="text" class="form-control" id="active_introducer" placeholder="介绍人" name="Introducer">

                    </div>
                    <div class="form-group">
                        <label for="NickName" class="purchase-text">业务：</label>
                        <select id="active_sales" class="form-control list_search" name="SalesUserID"></select>
                    </div>
                    <div class="form-group">
                        <label for="Mobile" class="purchase-text">Mobile：</label>
                        <input type="text" class="form-control" id="active_mobile" placeholder="Mobile" name="Mobile">
                    </div>
                    <div class="form-group">
                        <label for="Sex" class="purchase-text">性别：</label>
                        <select class="form-control" name="Sex" id="active_sex">
                            <option value="2" selected="selected">保密</option>
                            <option value="1">男</option>
                            <option value="0">女</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label for="QQ" class="purchase-text">QQ：</label>
                        <input type="text" class="form-control" id="active_qq" placeholder="QQ" name="QQ">
                    </div>
                    <div class="form-group">
                        <label for="Email" class="purchase-text">Email：</label>
                        <input type="text" class="form-control" id="active_email" placeholder="Email" name="Email">
                    </div>
                    <div class="form-group">
                        <label for="Url" class="purchase-text">网站：</label>
                        <input type="text" class="form-control" id="active_url" placeholder="网站" name="Url">
                    </div>
                    <div class="form-group">
                        <label for="SysStatus" class="purchase-text"><b class="star_tip">*</b>状态：</label>
                        <select class="form-control" name="SysStatus" id="active_sysStatus">
                            <option value="1" selected="selected">正常</option>
                            <option value="2">待审</option>
                            <option value="-1">删除</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>优惠倍率：</label>
                        <input type="number" class="form-control" id="form_Discounts" value="1" placeholder="98折，写入0.98" name="Discounts">
                    </div>
                    <div class="form-group" >
                        <label for="Rebate" class="purchase-text"><b class="star_tip">*</b>白钻加点：</label>
                        <input type="text" class="form-control" id="active_rebate" placeholder="白钻加点" name="Rebate">
                    </div>
                    <div class="form-group" >
                        <label for="FancyRebate" class="purchase-text"><b class="star_tip">*</b>彩钻倍率：</label>
                        <input type="text" class="form-control" id="active_fancyRebate" placeholder="彩钻倍率" name="FancyRebate">
                    </div>

                    <div class="form-group"  >
                        <label for="PrimeGoldRebate"  id="active_inlaysbate_switch" data-type="1" style="width:90px;"><b class="switch_icon"></b>
                            <span id="active_inlaysbate_switch_title">空托倍率：</span></label>
                        <div style="display: inline-block" id="active_inlaysRebate">
                            <input type="number" class="form-control" style="width:200px" id="active_inlaysettingsRebate" placeholder="空托倍率" name="InlaySettingsRebate">
                        </div>
                        <div style="display: none;position: relative" id="active_inlaysDiscounts">
                            <span style="position: absolute;left: 100px;top: -30px;color:red">在原基础上调价</span>
                            <div class="form-group">
                                <label for="GoldPrice" style="color:red">金价:</label>
                                <input type="number" class="form-control" value="0" id="active_goldPrice" placeholder="金价" name="GoldPrice">
                            </div>
                            <div class="form-group">
                                <label for="LaborFee" style="color:red">损耗%:</label>
                                <input type="number" class="form-control" value="0" id="active_wastage"  placeholder="损耗%" name="Wastage">
                            </div>
                            <div class="form-group">
                                <label for="SideLaborFee" style="color:red">副石工费:</label>
                                <input type="number" class="form-control" value="0" id="active_sideLaborFee" placeholder="副石工费" name="SideLaborFee">
                            </div>
                            <div class="form-group">
                                <label for="LaborFee">工费:</label>
                                <input type="number" class="form-control" value="1" id="active_laborFee" placeholder="工费" name="LaborFee">
                            </div>
                            <div class="form-group">
                                <label for="SidePrice">副石额:</label>
                                <input type="number" class="form-control" value="1" id="active_sidePrice" placeholder="副石额" name="SidePrice">
                            </div>
                            <div class="form-group">
                                <label for="Insurance">保险费:</label>
                                <input type="number" class="form-control" value="1" id="active_insurance" placeholder="保险费" name="Insurance">
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label><b class="no_null">*</b>负责人：</label>
                        <input type="text" class="form-control" placeholder="负责人" name="Principal">
                    </div>
                    <div class="form-group">
                        <label><b class="no_null">*</b>经营：</label>
                        <input type="text" class="form-control" placeholder="经营" name="Manager">
                    </div>
                    <div class="form-group">
                        <label for="Comments" class="purchase-textarea cus_textarea">备注：</label>
                        <textarea class="form-text" id="active_comments" placeholder="备注" name="Comments" cols="60" rows="2"></textarea>
                    </div>
                    <div class="form-btn">
                        <input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="取消" name="cancel"/>
                        <input type="submit" class="btn btn-danger supbtn" value="确定" name="sure"/>
                    </div>
                </form>
                </div>
                </div>
<!-- 审核客户end --->

<!--调节余额start-->
<div class="popup Adjust_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>余额调节</h5>
        <form class="form-inline _adjust" method="post">
            <div class="form-group" style="display: none;">
                <label class="checkbox-inline">
                    <input class="form-control" type="text" name="CustomerID" id="adjust_cuID" placeholder="客户ID" readonly="readonly" />
                </label>
            </div>
            <div class="form-group">
                <label for="NickName" class="purchase-adjust">公司简称：</label>
                <input style="width:52%" class="form-control" type="text" name="NickName" id="_nickNam" placeholder="公司简称" readonly="readonly" />
            </div>
            <div class="form-group">
                <label for="Balance" class="purchase-adjust">当前￥余额：</label>
                <input style="width:52%" class="form-control" type="text" name="Balance" id="_ba" placeholder="客户当前人民币余额" readonly="readonly" />
            </div>
            <div class="form-group">
                <label for="Amount" class="purchase-adjust"><b style="color: red;">调节￥余额：</b></label>
                <input style="width:52%" class="form-control" type="number" name="Amount" id="adjustamount" placeholder="客户实际人民币余额" />
            </div>
            <div class="form-group">
                <label for="Balance" class="purchase-adjust">当前$余额：</label>
                <input style="width:52%" class="form-control" type="text" name="USDBalance" id="_usdba" placeholder="客户当前美金余额" readonly="readonly" />
            </div>
            <div class="form-group">
                <label for="Amount" class="purchase-adjust"><b style="color: red;">调节$余额：</b></label>
                <input style="width:52%" class="form-control" type="number" name="USDAmount" id="adjustusdamount" placeholder="客户实际美金余额" />
            </div>
            <div class="form-btn">
                <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;"/>
                <input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="取消" name="x6" />
                <input type="submit" class="btn btn-danger supbtn" value="确定" />
            </div>
        </form>
    </div>
</div>
<!--调节余额end -->
<!--申请充值start-->
<div class="popup Balance_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>申请充值人民币</h5>
        <form class="form-inline _balance" style="padding: 5px 5px 5px 30px;" method="post">
            <label class="checkbox-inline" style="display:none;">
                <input class="form-control" type="text" name="CustomerID" id="_custID" placeholder="客户ID" readonly="readonly" />
            </label>
            <div class="form-group">
                <label for="Balance">当前余额：</label>
                <input class="form-control" type="text" name="Balance" id="_bal" placeholder="客户当前余额" readonly="readonly" />
            </div>

            <div class="form-group">
                <b style="vertical-align: top;">银行账户：</b>
                <div class="account-radio" id="_bankID1"></div>
            </div>
            <div class="form-group">
                <label for="Currency">结算币种：</label>
                <input type="radio" name="Currency" value="1" checked="checked" style="width: 30px;"/>人民币
            </div>
            <div class="form-group">
                <label for="Abstract">操作类型：</label>
                <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
            </div>
            <div class="form-group">
                <label for="Amount"><b style="color:red;">交易金额：</b></label>
                <input class="form-control" type="number" name="Amount" id="camount" placeholder="交易金额" />
            </div>
            <div class="form-group">
                <label for="ArrivalTime">到款日期：</label>
                <div class="list-block" style="margin: 0;">
                    <ul>
                        <li>
                            <div class="item-content" style="padding-left: 0;">
                                <div class="item-inner">
                                    <div class="item-input">
                                        <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="carrivalTime" required="required">
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="form-group">
                <label for="Remarks" class="Remark-textarea">申请备注：</label>
                <textarea class="form-text" rows="2" cols="40" id="cremarks" placeholder="" name="Remarks"></textarea>
            </div>
            <div class="form-btn">
                <input type="button" class="btn btn-danger supbtn cancel close-popup" name="btn" value="取消" />
                <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
                <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>
        </form>
    </div>
</div>
<!--申请充值end -->

<!--申请美金充值start-->
<div class="popup USDBalance_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>申请充值美金</h5>
        <form class="form-inline _usdbalance" style="padding: 5px 5px 5px 30px;" method="post">
            <label class="checkbox-inline" style="display:none;">
                <input class="form-control" type="text" name="CustomerID" id="_cuID" placeholder="客户ID" readonly="readonly" />
            </label>
            <div class="form-group">
                <label for="USDBalance">当前余额：</label>
                <input class="form-control" type="text" name="USDBalance" id="_usdbal" placeholder="客户当前余额" readonly="readonly" />
            </div>
            <div class="form-group">
                <b style="vertical-align: top;">银行账户：</b>
                <div class="account-radio" id="_usdbankID"></div>
            </div>
            <div class="form-group">
                <label for="Currency">结算币种：</label>
                <input type="radio" name="Currency" value="2" checked="checked" id="_usd" style="width: 30px;"/>美金
            </div>
            <div class="form-group">
                <label for="Abstract">操作类型：</label>
                <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>客户充值
            </div>
            <div class="form-group">
                <label for="Amount"><b style="color:red;">交易金额：</b></label>
                <input class="form-control" type="number" name="Amount" id="cusdamount" placeholder="交易金额" />
            </div>
            <div class="form-group">
                <label for="ArrivalTime">到款日期：</label>
                <div class="list-block" style="margin: 0;">
                    <ul>
                        <li>
                            <div class="item-content" style="padding-left: 0;">
                                <div class="item-inner">
                                    <div class="item-input">
                                        <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="到款日期" readonly id="cusdarrivalTime" required="required">
                                    </div>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="form-group">
                <label for="Remarks" class="Remark-textarea">申请备注：</label>
                <textarea class="form-control form-text" rows="3" cols="40" id="cusdremarks" placeholder="" name="Remarks" ></textarea>
            </div>
            <div class="form-btn">
                <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
                <input type="reset" class="btn btn-danger supbtn" value="重置" style="display:none;" />
                <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>     <!-- onclick="ApplyFlow();" -->
        </form>
    </div>
</div>
<!--申请美金充值end -->

<!--客户筛选-->
<div class="popup customer_filter_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>客户筛选</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;">

            <datalist id="_customerUserName" class="form-control list_search" style="display:none;"></datalist> <!-- 下拉优化 -->
            <div class="form-group">
                <label>账号：</label>
                <input type="text" id="_userName" list="_customerUserName" class="form-control" placeholder="帐号"/>
            </div>
            <datalist id="_customerNickName" class="form-control list_search" style="display:none;"></datalist>
            <div class="form-group">
                <label>公司简称：</label>
                <input type="text" id="_nickName" list="_customerNickName" class="form-control" placeholder="公司简称"/>
            </div>
            <div class="form-group">
                <label>公司全称：</label>
                <input class="form-control" type="text" placeholder="公司全称"  id="_companyName" />
            </div>
            <div class="form-group">
                <label>电话：</label>
                <input class="form-control" type="text" placeholder="电话"  id="_mobile" />
            </div>

            <div class="form-group">
                <label>业务：</label>
                <select id="_salesUserID" class="form-control"></select>
            </div>
            <div class="form-group">
                <label>采购：</label>
                <select id="_purchaseUserID" class="form-control"></select>
            </div>
            <div class="form-btn">
                <input type="button" class="btn btn-danger supbtn cancel close-popup" value="取消" />
                <input type="button" class="btn btn-danger supbtn" id="confirm_btn" value="确定"/>
            </div>
        </form>
    </div>
</div>

<!--客户筛选end-->
<!--客户新增和编辑-->
<div class="popup customer_form_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5 id="customer_form_title">客户新增</h5>
        <form class="form-inline" name="addForm" method="post" id="form_data" style="padding: 5px 5px 5px 30px;">
            <input type="text" id="id_input" style="display: none;"/>
            <div class="form-group">
                <label><b class="no_null">*</b>帐号：</label>
                <input type="text" class="form-control" id="add_userName" placeholder="帐号" name="UserName">                    <!--  onblur="UserNameIsExist();" -->
            </div>
            <div class="form-group">
                <label><b class="no_null">*</b>密码：</label>
                <input type="password" class="form-control" id="add_userPassword" placeholder="密码" name="UserPassword" />
            </div>
            <div class="form-group">
                <label><b class="no_null">*</b>公司简称：</label>
                <input type="text" class="form-control" id="add_nickName" placeholder="公司简称" name="NickName">
            </div>
            <div class="form-group">
                <label for="add_companyName" class="purchase-text">公司全称：</label>
                <input type="text" class="form-control" id="add_companyName" placeholder="公司全称" name="CompanyName">
            </div>
            <div class="form-group">
                <label><b class="star_tip">*</b>手机：</label>
                <input type="text" class="form-control" id="add_mobile" placeholder="Mobile" name="Mobile">                    <!--  onblur="MobileIsExist();" -->
            </div>
            <div class="form-group">
                <label><b class="star_tip">*</b>业务：</label>
                <select id="combo_sales" class="form-control" name="SalesUserID"></select>
            </div>
            <div class="form-group">
                <label for="add_sex" class="purchase-text">性别：</label>
                <select class="form-control" name="Sex" id="add_sex">
                    <option value="2" selected="selected">保密</option>
                    <option value="1">男</option>
                    <option value="0">女</option>
                </select>
            </div>
            <div class="form-group">
                <label for="add_qq" class="purchase-text">QQ：</label>
                <input type="text" class="form-control" id="add_qq" placeholder="QQ" name="QQ">
            </div>
            <div class="form-group">
                <label for="add_email" class="purchase-text">Email：</label>
                <input type="text" class="form-control" id="add_email" placeholder="Email" name="Email">
            </div>

            <div class="form-group">
                <label for="add_url" class="purchase-text">网站：</label>
                <input type="text" class="form-control" id="add_url" placeholder="网站" name="Url">
            </div>
            <div class="form-group">
                <label for="add_sysStatus" class="purchase-text">状态：</label>
                <select class="form-control" name="SysStatus" id="add_sysStatus">
                    <option value="1" selected="selected">正常</option>
                    <option value="2">待审</option>
                    <option value="0">禁用</option>
                    <option value="-1">已删</option>
                </select>
            </div>
            <div class="form-group">
                <label>优惠倍率：</label>
                <input type="number" class="form-control" id="add_Discounts" value="1" placeholder="98折，写入0.98" name="Discounts">
            </div>
            @{
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("diamond")==true){
            <div class="form-group">
                <label for="Rebate" id="rebate_switch" data-type="1"><b class="switch_icon"></b>
                    <span id="rebate_switch_title">白钻加点：</span></label>
                <input type="number" class="form-control" id="add_rebate" placeholder="白钻加点,2为加2个点" name="Rebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("diamond")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>彩钻倍率：</label>
                <input type="number" class="form-control" id="add_fancyRebate" placeholder="彩钻倍率,-5为减5个点" name="FancyRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("parcel")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>统包倍率：</label>
                <input type="number" class="form-control" id="add_parcelRebate" placeholder="统包倍率,2为加2个点" name="ParcelRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("ring")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>成品倍率：</label>
                <input type="number" class="form-control" id="add_ringRebate" placeholder="成品倍率,-5为减5个点" name="RingRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("gem")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>彩宝倍率：</label>
                <input type="number" class="form-control" id="add_gemRebate" placeholder="彩宝倍率,-5为减5个点" name="GemRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("emerald")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>翡翠倍率：</label>
                <input type="number" class="form-control" id="add_emeraldRebate" placeholder="翡翠倍率,-5为减5个点" name="EmeraldRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("primeGold")==true){
            <div class="form-group">
                <label><b class="no_null">*</b>素金倍率：</label>
                <input type="number" class="form-control" id="add_goldsRebate" placeholder="素金倍率,-5为减5个点" name="PrimeGoldRebate">
            </div>
            }
            if(MvcWechat.Common.GetOpenMenu.IsDisplay("inlaysettings")==true){
            <div class="form-group"  >
                <label for="PrimeGoldRebate"  id="inlaysbate_switch" data-type="1" style="width:90px;"><b class="switch_icon"></b>
                    <span id="inlaysbate_switch_title">空托倍率：</span></label>
                <div style="display: inline-block" id="add_inlaysRebate">
                    <input type="number" class="form-control" style="width:200px" id="add_inlaysettingsRebate" placeholder="空托倍率" name="InlaySettingsRebate">
                </div>
                <div style="display: none;position: relative" id="add_inlaysDiscounts">
                    <span style="position: absolute;left: 100px;top: -30px;color:red">在原基础上调价</span>
                    <div class="form-group">
                        <label for="GoldPrice" style="color:red">金价:</label>
                        <input type="number" class="form-control" value="0" id="goldPrice" placeholder="金价" name="GoldPrice">
                    </div>
                    <div class="form-group">
                        <label for="LaborFee" style="color:red">损耗%:</label>
                        <input type="number" class="form-control" value="0" id="wastage"  placeholder="损耗%" name="Wastage">
                    </div>
                    <div class="form-group">
                        <label for="SideLaborFee" style="color:red">副石工费:</label>
                        <input type="number" class="form-control" value="0" id="sideLaborFee" placeholder="副石工费" name="SideLaborFee">
                    </div>
                    <div class="form-group">
                        <label for="LaborFee">工费:</label>
                        <input type="number" class="form-control" value="1" id="laborFee" placeholder="工费" name="LaborFee">
                    </div>
                    <div class="form-group">
                        <label for="SidePrice">副石额:</label>
                        <input type="number" class="form-control" value="1" id="sidePrice" placeholder="副石额" name="SidePrice">
                    </div>
                    <div class="form-group">
                        <label for="Insurance">保险费:</label>
                        <input type="number" class="form-control" value="1" id="insurance" placeholder="保险费" name="Insurance">
                    </div>
                </div>
            </div>
            }
            }
            <div class="form-group input_button_div" style="height:29px;display:none">
                <label>供应商角色：</label>
                <select class="form-control" name="RoleNames" id="form_RoleName" multiple="multiple">
                </select>
            </div>
            <div class="form-group" style="display:none">
                <label><b class="no_null">*</b>负责人：</label>
                <input type="text" class="form-control" placeholder="负责人" name="Principal">
            </div>
            <div class="form-group" style="display:none">
                <label><b class="no_null">*</b>经营：</label>
                <input type="text" class="form-control" placeholder="经营" name="Manager">
            </div>
            <div class="form-group">
                <label for="Comments" class="purchase-textarea cus_textarea">备注：</label>
                <textarea class="form-text" id="add_comments" placeholder="备注" name="Comments" cols="60" rows="2"></textarea>
            </div>
            <div style="clear: both;"></div>

            <div class="form-btn">
                <input id="reset_btn" class="btn btn-danger supbtn" type="reset" value="重置"/>

                <input type="submit" class="btn btn-danger supbtn" value="确定"/>
            </div>
            <!--</div>-->
        </form>
    </div>
</div>
<!--客户新增和编辑end-->

</div>
</div>
</body>
</html>
@Html.Partial("wap/team/commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/wap/team/multiple-select.js"></script>
<script>
    var roleID = $.cookie("RoleID");//全局变量
    var originRoleID=$.cookie("RoleID");//全局变量
    var sales="";//全局业务变量
    var purchases="";//全局采购变量8-27
    var isDia='@MvcWechat.Common.GetOpenMenu.IsDisplay("diamond")';
    isDia=isDia.toLowerCase();
    var isParcel='@MvcWechat.Common.GetOpenMenu.IsDisplay("parcel")';
    isParcel=isParcel.toLowerCase();
    var isRing='@MvcWechat.Common.GetOpenMenu.IsDisplay("ring")';
    isRing=isRing.toLowerCase();
    var isGem='@MvcWechat.Common.GetOpenMenu.IsDisplay("gem")';
    isGem=isGem.toLowerCase();
    var isEmerald='@MvcWechat.Common.GetOpenMenu.IsDisplay("emerald")';
    isEmerald=isEmerald.toLowerCase();
    var isPrimeGold='@MvcWechat.Common.GetOpenMenu.IsDisplay("primeGold")';
    isPrimeGold=isPrimeGold.toLowerCase();
    var isInlaySettings='@MvcWechat.Common.GetOpenMenu.IsDisplay("inlaysettings")'.toLocaleLowerCase();
    isInlaySettings=isInlaySettings.toLowerCase();
</script>

<script src="~/Js/wap/team/sort.js" type="text/javascript"></script>
<script src="~/js/wap/team/customer.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/wap/team/order_handle.js?v=@MvcWechat.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/wap/team/orderValidate.js?v=@MvcWechat.Common.Version.Get"></script>


